<?php 
/* SVN FILE: $Id$ */
/* Task Test cases generated on: 2010-02-16 07:03:05 : 1266303785*/
App::import('Model', 'Task');

class TaskTestCase extends CakeTestCase {
	var $Task = null;
	var $fixtures = array('app.task');

	function startTest() {
		$this->Task =& ClassRegistry::init('Task');
	}

	function testTaskInstance() {
		$this->assertTrue(is_a($this->Task, 'Task'));
	}

	function testTaskFind() {
		$this->Task->recursive = -1;
		$results = $this->Task->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Task' => array(
			'id'  => 1,
			'title'  => 'Lorem ipsum dolor sit amet',
			'done'  => 1,
			'created'  => '2010-02-16 07:03:04',
			'modified'  => '2010-02-16 07:03:04'
		));
		$this->assertEqual($results, $expected);
	}
}
?>